package interfaces.model;

import interfaces.view.AbstractCellDrawer;
import interfaces.view.CellDrawer;


public class Plugin {
	int[] dimensions = new int[] {4,4};
	//setup board
	AbstractBoard b = AbstractBoard.getBoard();
	boolean setDim = b.setDimensions(dimensions);
	boolean playgame = true;
	
	//setup AI
	AbstractCellAI ai = AbstractCellAI.getAI();
	
	//add rules
	Rule ruleOn = new RuleOn();
	Rule ruleOff = new RuleOff();
	boolean addR = ai.addRule(ruleOn);
	boolean addR2 = ai.addRule(ruleOff);
	
	
	public void run(){
		AbstractCellDrawer drawer = new AbstractCellDrawer();
		while (playgame){
			b.makeAct();
			drawer.drawBoard();
		}
	}
	
}
